﻿@{
    Bundle("jquery_validate");
}

<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('@ID("#form")').validate({
            rules: {
                key: {
                    required: true
                }
            }
        });
    });
</script>
<form id="@ID("form")" action="@Url.Action(Loc.Act("Set"))" method="post">
    <ul>
        <li>
            <label>@T(Res.Name("Key"))</label>
        </li>
        <li>
            <input type="text" name="key" maxlength="100" />
        </li>
        <li>
            <label>@T(Res.Name("Value"))</label>
        </li>
        <li>
            <input type="text" name="value" maxlength="4000" />
        </li>
    </ul>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>